﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MSTaskPoint2ManualMeasurement")]
    public class MSTaskPoint2ManualMeasurement
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid MSTaskPoint2ManualMeasurementId { get; set; }

        /// <summary>
        /// 站点ID
        /// </summary>
        [Column(TypeName = "uuid")]
        [Required]
        public Guid PointId { get; set; }

        /// <summary>
        /// 任务ID
        /// </summary>

        [Column(TypeName = "uuid")]
        [Required]
        public Guid TaskId { get; set; }

        /// <summary>
        /// code编号
        /// </summary>
        [Column(TypeName = "varchar(500)")]
        public string Code { get; set; }

        /// <summary>
        /// 输入项名称
        /// </summary>
        [Column(TypeName = "varchar(500)")]
        public string Title { get; set; }

        /// <summary>
        /// 手工录入项类型ID
        /// </summary>
        [Column(TypeName = "varchar(500)")]
        public string ManualMeasurementTypeId { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        [Column(TypeName = "varchar(500)")]
        public string Unit { get; set; }

        /// <summary>
        /// 值，json格式多个值
        /// </summary>
        [Column(TypeName = "varchar(1000)")]
        public string Values { get; set; }

        /// <summary>
        /// 值，json格式多个值
        /// </summary>
        [Column(TypeName = "varchar(2000)")]
        public string ValueDesign { get; set; }

        /// <summary>
        /// 设计值
        /// </summary>
        [Column(TypeName = "text")]
        public string DesignValues { get; set; }

        /// <summary>
        /// 任务测量项模板Id
        /// </summary>
        [Column(TypeName = "uuid")]
        public Guid MsTaskMeasureItemTemplateId { get; set; }
    }
}